<!doctype html>
<html lang="en">
<head>
    @include('web.layout.head')
    <link rel="stylesheet" href="{{mix('/css/web/user/ebao.css')}}">
</head>
<body>
@include('web.layout.header')
@include('web.layout.user_tab')
<div class="base_member_content">
    <div class="w1200">
        @include('web.layout.seller_nav')
        <div class="nav_right flr">
            <div class="base_content">
                <div class="line_title">e井宝</div>
                <div class="gathering_info">
                    <h2>专业的收付款管理 <font>上次登录时间：{{$last_login_time}}</font></h2>
                    <div class="gathering_info_box">
                        <div class="gathering_info_box_left fl border_b">
                            <div class="tit">待到款金额：</div>
                            <div class="collect">{{sprintf("%.2f",$unreceive_money)}}<font>元</font></div>
                        </div>
                        <div class="gathering_info_box_right fr">
                            <div class="tit">帐号管理：</div>
                            <?php if(isset($account)){?>
                            <div class="name">{{$account['bank_name']}}<font>（@if($account['accout_status']==1)已开通@else未开通@endif）</font><a href="/member/seller/account">管理</a></div>
                            <div class="tit2">{{substr($account['bank_no'],0,4)}}  ****  ****  {{substr($account['bank_no'],-4)}}</div>
                            <div class="dz_id">电子ID：{{$account['account_id']}}</div>
                            <?php }else{
                            ?>
                            <div class="name">您还未绑定账号 <font> </font><a href="/member/seller/account">管理</a> </div>
                            <?php 
                            }?>
                        </div>
                        <div class="gathering_info_box_left fl">
                            <div class="tit2">已到款金额：</div>
                            <div class="receivables">{{sprintf("%.2f",$receive_money)}}元   |   累计应收款: {{sprintf("%.2f",$total_money)}} 元 </div>
                        </div>
                    </div>
                </div>
                <!-- 
                <div class="table">
                    <table>
                        <thead>
                        <tr>
                            <th width="150">最近交易记录</th>
                            <th width="280"></th>
                            <th width="140"> </th>
                            <th width="140"></th>
                            <th width="120">
                                <select>
                                    <option value="0">所有订单类型</option>
                                    <option value="1">交易成功</option>
                                    <option value="2">等待确认收货</option>
                                    <option value="3">等待卖家发货</option>
                                    <option value="4">确认退款</option>
                                </select>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>2018.03.28</td>
                                <td class="text-left">深圳麦格米特电气股份有限公司</td>
                                <td>- 83150.00</td>
                                <td>等待卖家发货</td>
                                <td><a href="/seller/trade_details" target="_blank">详情 <img src="{{asset('/img/web/user/xia_sj.png')}}"></td>
                            </tr>
                            <tr>
                                <td>2018.03.28</td>
                                <td class="text-left">深圳麦格米特电气股份有限公司</td>
                                <td>- 83150.00</td>
                                <td>等待卖家发货</td>
                                <td><a href="/seller/trade_details" target="_blank">详情 <img src="{{asset('/img/web/user/xia_sj.png')}}"></td>
                            </tr>
                            <tr>
                                <td>2018.03.28</td>
                                <td class="text-left">深圳麦格米特电气股份有限公司</td>
                                <td>- 83150.00</td>
                                <td>等待卖家发货</td>
                                <td><a href=/seller/trade_details" target="_blank">详情 <img src="{{asset('/img/web/user/xia_sj.png')}}"></td>
                            </tr>
                        </tbody>
                    </table>
                </div>  -->
                <!-- <a href="/seller/trade" class="view_log">查看所有交易记录</a>  -->
            </div>
        </div>
    </div>
</div>
<div class="bg_h"></div>


@include('web.layout.footer')
<script type="text/javascript">
    var start = {
        format: 'YYYY-MM-DD hh:mm',
        minDate: '2014-06-16 23:59:59', //设定最小日期为当前日期
        //festival:true,
        maxDate: $.nowDate({DD:0}), //最大日期
        choosefun: function(elem,datas){
            end.minDate = datas; //开始日选好后，重置结束日的最小日期
            endDates();
        },
        okfun:function (elem,datas) {
            alert(datas)
        }
    };
    var end = {
        format: 'YYYY-MM-DD hh:mm',
        minDate: $.nowDate({DD:0}), //设定最小日期为当前日期
        //festival:true,
        maxDate: '2099-06-16 23:59:59', //最大日期
        choosefun: function(elem,datas){
            start.maxDate = datas; //将结束日的初始值设定为开始日的最大日期
        }
    };
    function endDates() {
        end.trigger = false;
        $("#inpend").jeDate(end);
    }
    $("#inpstart").jeDate(start);
    $("#inpend").jeDate(end);

    $(function(){

    });

</script>
</body>
</html>